﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class RWNPC:NPC
    {
        private string rWInfo;
        private string RWInfo {
            get { return this.rWInfo; }
            set { this.rWInfo = value; }
        }
        public RWNPC(string name, NPCType type, string rWInfo) : base(name, type) {
            this.rWInfo = rWInfo;
        }
        public override void speak()
        {
            Console.WriteLine("你能帮帮我吗？NPC:{0},任务{1}",this.Name,this.rWInfo);
        }
    }
}
